package net.oschina.allchat.protocol.im.stanza;

import java.util.List;

import net.oschina.allchat.protocol.core.LangText;
import net.oschina.allchat.protocol.core.Protocol;
import net.oschina.allchat.protocol.core.stanza.Stanza;

public final class Message extends Stanza {
	public enum Type {
		NORMAL,
		CHAT,
		GROUP_CHAT,
		HEADLINE
	}
	
	public static final Protocol PROTOCOL = new Protocol("message");
	
	private List<LangText> subjects;
	private List<LangText> bodies;
	private String thread;
	private Message.Type type;
	
	public List<LangText> getSubjects() {
		return subjects;
	}

	public List<LangText> getBodies() {
		return bodies;
	}

	public void setBodies(List<LangText> bodies) {
		this.bodies = bodies;
	}

	public String getThread() {
		return thread;
	}

	public void setThread(String thread) {
		this.thread = thread;
	}

	public Message.Type getType() {
		return type;
	}

	public void setType(Message.Type type) {
		this.type = type;
	}

	public void setSubjects(List<LangText> subjects) {
		this.subjects = subjects;
	}
	
}
